<?php

namespace App\Exports;

class PerformanceTemplateExport {
    public function collection()
    {
        // 这里使用 collect 方法生成 collection，通常模型取出的数据即为 collection 格式
        $collection = new Collection($this->createData());
        return $collection;
    }

    protected function createData()
    {
        $heading = [
            ['专卖店名称','设计师ID','订单星级','费用类型','收费等级','订单平方数','绩效','申请时间','下单时间','审核时间','下单平方数','下单绩效','C单平方数','C单金额','C单绩效','套内面积','单号','备注'],
            ['shop_name','erp_user_id','order_level','cost_category','charge_level','order_square','performance','time','place_order_time','audit_time','place_order_square','place_order_performance','c_order_square','c_order_money','c_order_performance','inside_space','onum','remark'],
        ];
        $data = [];
        return array_merge($heading, $data);
    }
}
